<div class="container d-gao-80 d-yincang">
</div>
<div class="d-container d-yincang-pc navbar-fixed-top" style="background-color: #ffffff">
	<div class="d-row">
    	<div class="d-col-md-8">
			<div class="d-yuanjiao-bianhua-10-10 d-kuan d-bianhua-20 " style="background-color: #ffffff">
				<!--服务头部-->
				<div class="row">
					<!--返回-->
					<div class="col-md-12 col-xs-12 d-div-zou  d-buhuanhang d-yincang-pc d-huading-100"> 
					    <a href="javascript:goBack();">
					        <img src="{HOME_THEME_PATH}fuwu/img/fanhui-hui.svg" width="20" height="20" class=""/>
						</a>
						<a href="{CLIENT_URL}index.php?ye=0">
						    <img class="pull-right" src="{HOME_THEME_PATH}fuwu/img/shouye2.png" height="20"/> 
						</a>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<div class="d-container">
	<div class="d-row">
	    <div class="d-col-md-8">
			<div class="d-dingwei-you-60  ">
				<div class="d-dingwei-you-60-ding d-beijing-baise d-yuanjiao-10">
					<div class="d-kuan-60 d-wenzi-juzhong d-quxian-0">
						<a  id="tag_zan_ding_{$id}" data-id="{$id}" class="tag_zan_ding">
							{dr_fuwu_tag_zan_ding($id, $zan)} 
						</a>
						<div class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" {if $member} id="module_zan_ding_{$id}"{/if}>{intval($zan)}</div>
					</div>
					<div class="d-kuan-60 d-wenzi-juzhong d-quxian-0">
						<a  id="tag_favorite_ding_{$id}" data-id="{$id}" class="tag_favorite_ding">
							{dr_fuwu_tag_favorite_ding($id, $favorites)} 
						</a>
						
						<!--div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong">
							<img src="{HOME_THEME_PATH}fuwu/img/shoucang4.png" width="30" class="d-shang-4"/>
						</div>
						<div class="d-shang-4 d-wenzi-12">收藏</div-->
						<div class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" {if $member} id="module_favorite_ding_{$id}"{/if}>
						    {intval($favorites)}
						</div>
					</div>
					<div class="d-kuan-60 d-wenzi-juzhong d-quxian-0">
						<a href="#ds-reset" >
							<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong">
								<img src="{HOME_THEME_PATH}fuwu/img/pinglun4.png" width="30" class="d-shang-4"/>
							</div>
						    <div class="d-shang-4 d-wenzi-12">评论</div>
						</a>
						<div class="d-shang-4 d-wenzi-12 d-zitiyanse-hui">{intval($comments)}</div>
					</div>
				</div>
			</div>
			<div class="d-yuanjiao-bianhua-10-10 d-kuan d-beijing-baise d-bianhua-20 ">
				<div class="d-kuan d-gao-40 d-beijing-baise d-yincang-pc">
					
				</div>
				<div class="d-kuan d-gao-40 d-beijing-baise d-yincang">
					<div class="pull-left">
						<a href="javascript:goBack();">
						    <img src="{HOME_THEME_PATH}fuwu/img/fanhui-hui.svg" width="20" height="20" class=""/>
						</a>
					</div>
					<div class="pull-right">
						<img src="{HOME_THEME_PATH}fuwu/img/gengduo.svg" width="20" height="20" class=""/>
					</div>
				</div>
				<!--标题-->
				<div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-26 d-xia-20">
					{$title}
				</div>
				<!--头部-->
				<!--服务导航-->
				
				<div class="d-kuan d-buhuanhang  d-xia-20">
					<!--头部-->
					<div class="d-yuanjiao-10">
						<img src="{dr_avatar($index.uid)}" width="40" height="40" class="d-yuanjiao-50"/>
					</div>
					<div class="d-zuo-10 d-kuan">
						<div class="d-jiacu d-buhuanhang">
							<div class="d-jiacu">
								{php $userweixin=\Phpcmf\Service::M()->db->table('member_oauth')->where('uid', $index.uid)->get()->getRowArray();}
								{php $user=dr_member_info($index.uid);}
									{if $userweixin.nickname}
										{$userweixin.nickname}
									{elseif $user.name}
										{$user.name}
									{else}
										{$user.username}
									{/if}
							</div>
							<div class="d-zuo-10"><img src="{HOME_THEME_PATH}fuwu/img/dengji1.png" width="60" height="15" class="d-yuanjiao-50"/></div>
						</div>
						<div class="d-zitiyanse-hui ">
							{php $user=dr_member_info($index.uid);}
							{loop $user.group $tt}
							    {$tt.group_name}
							{/loop}
							. <i class="fa fa-heart-o d-zuo-10"></i><span class="d-zuo-10">浏览：{dr_form_hits($id)}</span>
						</div>
					</div>
					<div class="d-kuan-100">
						<div class=" d-beijing-hui d-yuanjiao-20 d-neikuang-5-10 d-div-you d-wenzi-12">关 注</div>
					</div>
				</div>
				<div class="d-kuan d-img-100 d-wenzi-16 d-img">
					{d_huati($neirong)}
				</div>
				<!---->
				<div class="d-beijing-hei-f0 d-neikuang-10 d-yuanjiao-10">
					<a href="{$index.url}" class="d-kuan ">
					<div class=" d-buhuanhang pull-left">
						<div class=" d-yuanjiao-10">
							<img class="d-yuanjiao-20" src="{dr_thumb($index.thumb)}" height="60"/>
						</div>
						<div class="d-zuo-10">
							<div class="d-jiacu d-wenzi-16 d-kuan">{dr_keyword_highlight($index.title, $keyword)}</div>
							<div class="d-wenzi-14">
								<span>
									帖子
									{count action=table table=1_fuwu_form_son cid=$index.id return=tiezi}
									{$tiezi_count}
								</span>
								<span class="d-zuo-20">
									用户: {$index.joins}
								</span>
							</div>
						</div>
					</div>
					<div class="d-kuan-100 d-shang-15  d-you-10 pull-right">
						<div class="d-neikuang-5-10 d-beijing-hei d-yuanjiao-20 pull-right d-zitiyanse-bai"> + 进入</div>
					</div>
					</a>
					<div class="d-clear"></div>
				</div>
				
			</div>
			<!--尾部评论-->
			<div class="d-yuanjiao-bianhua-10-10-xia d-kuan d-beijing-baise d-bianhua-10 d-yincang-pc">
				<div class="col-xs-3">
					<div class="d-kuan d-wenzi-juzhong d-quxian-0">
						<a  id="tag_zan_{$id}" data-id="{$id}" class="tag_zan ">
							{dr_fuwu_tag_zan($id,$zan)} 
						</a>
						<div class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" {if $member}id="module_zan_{$id}{/if}">{intval($zan)}</div>
					</div>
				</div>
				<div class="col-xs-3">
					<div class="d-kuan d-wenzi-juzhong d-quxian-0">
						<a  id="tag_favorite_{$id}" data-id="{$id}" class="tag_favorite ">
							{dr_fuwu_tag_favorite($id,$favorites)} 
						</a>
						<div class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" {if $member}id="module_favorite_{$id}{/if}">{intval($favorites)}</div>
					</div>
				</div>
				<div class="col-xs-3">
					<div class="d-kuan d-wenzi-juzhong d-quxian-0">
						<a href="#ds-reset">
							<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong">
								<img src="{HOME_THEME_PATH}fuwu/img/pinglun.png" width="30" class="d-shang-4 d-kuan-juzhong"/>
							</div>
							<div class="d-shang-4 d-wenzi-12">评论</div>
							<div class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" >{intval($comments)}</div>
						</a>
					</div>
				</div>
				<div class="col-xs-3">
					<div class="d-kuan d-wenzi-juzhong d-quxian-0">
						<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong">
							<img src="{HOME_THEME_PATH}fuwu/img/fenxiang2.png" width="30" class="d-shang-4 d-kuan-juzhong"/>
						</div>
						<div class="d-shang-4 d-wenzi-12">分享</div>
						<div class="d-shang-4 d-wenzi-12 d-zitiyanse-hui" id="module_favorite_{$id}">{intval($favorites)}</div>
					</div>
				</div>
				
				 
				 <script>
						 // 模块点赞
						 $(".tag_zan_ding").click(function(){
							 var id = $(this).data("id");
							 $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=zan&id="+id, function(data){
								 dr_cmf_tips(data.code, data.msg);
								 
								 if (data.data==1) {
									$('#module_zan_'+id).html(data.data);
									$('#module_zan_ding_'+id).html(data.data);
									 $('#tag_zan_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan2.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">已赞</div>'
									);
									
									$('#tag_zan_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan2.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">已赞</div>'
									);
									 
								}else{
									$('#module_zan_'+id).html(data.data);
									$('#module_zan_ding_'+id).html(data.data);
									$('#tag_zan_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">点赞</div>');
									$('#tag_zan_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">点赞</div>');
									
								}
								
							 }, 'json');
						 });
				        
						// 模块点赞
						$(".tag_zan").click(function(){
						    var id = $(this).data("id");
						    $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=zan&id="+id, function(data){
						        dr_cmf_tips(data.code, data.msg);
						        if (data.data==1) {
						        	$('#module_zan_'+id).html(data.data);
									$('#module_zan_ding_'+id).html(data.data);
						        	 $('#tag_zan_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan2.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">已赞</div>'
						        	);
						        	
						        	$('#tag_zan_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan2.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">已赞</div>'
						        	);
						        }else{
						        	$('#module_zan_'+id).html(data.data);
									$('#module_zan_ding_'+id).html(data.data);
						        	$('#tag_zan_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">点赞</div>');
						        	$('#tag_zan_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/zan.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">点赞</div>');
						        	
						        }
						    }, 'json');
						});
						// 模块收藏
						$(".tag_favorite").click(function(){
						    var id = $(this).data("id");
						    $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=fuwu&id="+id, function(data){
						        dr_cmf_tips(data.code, data.msg);
						        if (data.data==1) {
									$('#module_favorite_'+id).html(data.data);
						            $('#tag_favorite_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang5.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">已藏</div>'
									);
									$('#module_favorite_ding_'+id).html(data.data);
									 $('#tag_favorite_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang5.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">已藏</div>'
									);
						            
								}else{
									$('#module_favorite_'+id).html(data.data);
						            $('#tag_favorite_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang4.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">收藏</div>');
						            $('#module_favorite_ding_'+id).html(data.data);
						            $('#tag_favorite_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang4.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">收藏</div>');
						            
								}
						    }, 'json');
						});
						// 模块收藏顶部
						$(".tag_favorite_ding").click(function(){
						    var id = $(this).data("id");
						    $.get("{dr_url_prefix('index.php')}?s={MOD_DIR}&c=son&m=fuwu&id="+id, function(data){
						        dr_cmf_tips(data.code, data.msg);
						        if (data.data==1) {
						        	$('#module_favorite_'+id).html(data.data);
						        	$('#module_favorite_ding_'+id).html(data.data);
						        	 $('#tag_favorite_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang4-0.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">已藏</div>'
						        	);
						        	
						        	$('#tag_favorite_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang4-0.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">已藏</div>'
						        	);
						        }else{
						        	$('#module_favorite_'+id).html(data.data);
						        	$('#module_favorite_ding_'+id).html(data.data);
						        	$('#tag_favorite_ding_'+id).html('<div class="d-zuo-10 d-shang-10 d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-wenzi-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang4.png" width="30" class="d-shang-4"/></div><div class="d-shang-4 d-wenzi-12">收藏</div>');
						        	$('#tag_favorite_'+id).html('<div class=" d-gao-40 d-kuan-40 d-yuanjiao-50 d-beijing-hei-f0 d-kuan-juzhong"><img src="{HOME_THEME_PATH}fuwu/img/shoucang4.png" width="30" class="d-shang-4 d-kuan-juzhong"/></div><div class="d-shang-4 d-wenzi-12">收藏</div>');
						        	
						        }
						    }, 'json');
						});
				</script>
				<div class="d-clear"></div>
			</div>
			
			<!--// 评论ajax框代码 id表示当前模块表单的内容id号-->
			{dr_mform_comment('fuwu','son', $id)}
			
		</div>
		<div class="col-md-4 d-yincang">
			<div class="d-yuanjiao-10 d-kuan d-beijing-baise d-bianhua-10">
				<div class="d-yuanjiao-20 d-kuan d-wenzi-16 ">
					<div class="d-yuanjiao-10 d-kuan d-kuan-juzhong d-wenzi-juzhong">
						<img src="{dr_avatar($index.uid)}" width="50" height="50" class="d-yuanjiao-50 "/>
						<div class="d-shang-10 d-jiacu ">
							{if $userweixin.nickname}
								{$userweixin.nickname}
							{elseif $user.name}
								{$user.name}
							{else}
								{$user.username}
							{/if}
						</div>
						<!----简介---->
						<div class="d-shang-10 d-wenzi-14 d-zitiyanse-hui">
							DiscuzQ 官方贡献者
						</div>
					</div>
				</div>
				<div class="d-kuan">
					<div class="row  d-wenzi-juzhong d-shang-20">
						<div class="col-md-3">
							<div class="d-jiacu d-wenzi-16">0</div>
							<div>关注</div>
						</div>
						<div class="col-md-3">
							<div class="d-jiacu d-wenzi-16">
								{count action=table table=1_fuwu uid=$index.uid return=fuwuzi}
								{$fuwuzi_count}
							</div>
							<div>服务</div>
						</div>
						<div class="col-md-3">
							<div class="d-jiacu d-wenzi-16">0</div>
							<div>动态</div>
						</div>
						<div class="col-md-3">
							<div class="d-jiacu d-wenzi-16">0</div>
							<div>粉丝</div>
						</div>
						
					</div>
				</div>
			</div>
			<div class="d-yuanjiao-10 d-kuan d-beijing-baise d-bianhua-10 d-shang-20">
				<div class="d-yuanjiao-20 d-kuan d-jiacu d-wenzi-16">
					{if $userweixin.nickname}
						{$userweixin.nickname}
					{elseif $user.name}
						{$user.name}
					{else}
						{$user.username}
					{/if} 的帖子
				</div>
				<div class="d-kuan">
					{php $i=1;}
					{mform module=fuwu form=son order=inputtime uid=$uid num=10 return=tt}
						<div class="d-hanggao-40 d-wenzi-16 d-quxian-0 d-chaochu">
							<span class="d-jiacu d-you-10 {if $i<4}d-zitiyanse-hongse{/if}">{$i}</span>
							<a href="/index.php?s=fuwu&c=son&id={$tt.id}"> {$tt.title}</a>
						</div>
						{php $i++;}
					{/mform}
				</div>
			</div>
			
			
		</div>
	</div>
</div>

<style>

</style>
{template "fanhui.html"}